import React, { Component } from 'react'
import { NavLink } from "react-router-dom"
import router from "../../router"
export class foot_router extends Component {
    render() {
        return (
            <div>
                <div>
                    <ul className="app_foot">
                        {
                            router.filter(item => item.isMenu).map(item => <li key={item.path}>
                                <NavLink
                                    activeClassName="a"
                                    replace
                                    to={{ pathname: item.path }}
                                    className="app_footelink">
                                    <p><item.icon /></p>
                                    <p>{item.til}</p>
                                </NavLink>
                            </li>)
                        }

                    </ul>
                </div>
            </div>
        )
    }
}


export default foot_router
